import React, { use } from 'react';
import { Button, message } from 'antd';

interface MessageProps {
  msg: string;
}
const Message: React.FC = ({msg}: MessageProps) => {
  const [messageApi, contextHolder] = message.useMessage();

  const info = () => {
    messageApi.info(msg);
  };

  useEffect(() => {
    
  }, []);

  return (
    <>
      {contextHolder}
    </>
  );
};

export default Message;